<template>
   this is home page{{ userInfo.username }}
   token:{{ userInfo.token }} 
   <router-link to="/register">跳到注册页面</router-link>
    </template>
    
   <script setup lang="ts">
  import {useUserStore} from '@/store/user'
  import { storeToRefs } from 'pinia';
  const userStore = useUserStore()
   const { userInfo } = storeToRefs(userStore) 
   </script>